package com.cjj.common.dao.master.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.cjj.common.entity.dto.security.MenuRole;
import com.cjj.common.entity.po.master.CPermission;
import com.cjj.common.mapper.master.CPermissionMapper;
import com.cjj.common.dao.master.ICPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author BrownC_
 * @since 2021-12-20
 */
@Service
@DS("master")
public class CPermissionServiceImpl extends ServiceImpl<CPermissionMapper, CPermission> implements ICPermissionService {

    @Override
    public List<MenuRole> getAllMenus() {
        return baseMapper.getAllMenus();
    }
}
